package com.atguigu.jedis.demos;

import redis.clients.jedis.Jedis;

/**
 * Created by Smexy on 2022/5/20
 */
public class StringDemo {

    public static void main(String[] args) {

        //构建Jedisclient

        Jedis jedis = new Jedis("hadoop104", 6379);

        String response = jedis.ping();

        System.out.println(response);

        jedis.close();

    }
}
